package com.jiejie.service;

import com.jiejie.entity.Coupon;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jiejie.entity.CustomerAndCoupon;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 辰广
 * @since 2022-10-05
 */
public interface ICouponService extends IService<Coupon> {
    public Map<Coupon, CustomerAndCoupon> getCoupon(Integer customerId);
    public Coupon receiveCoupon(Integer customerId,Integer couponId);
    public Coupon getCouponfromredisordb(Integer coupon_Id);
    public void trancouponToDB();
    List<Coupon> getCouponList();
    public  Map<String,Object> getConfirm(Integer custId);
}
